package demo3;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestApp {
    public static void main(String[] args) {
        ApplicationContext a=new ClassPathXmlApplicationContext("demo3/demo3.xml");
        UserService service=a.getBean(UserService.class);
        service.login("tom","123");
    }
}
